package cn.gjculture.shopping.api.dao;

import cn.gjculture.shopping.api.entity.ArtistVote;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArtistVoteDao {
    @Select("select * from artistvote where customerId=#{customerId}")
    ArtistVote queryByCustomerId(String customerId);

    @Insert("insert into artistvote(artistId,artistName,artistIcon,artistIntroduce,insertTime,updateTime,status)" +
            " values(#{artistId},#{artistName},,#{artistIcon},#{artistIntroduce},#{insertTime},#{updateTime},#{status})")
    int insert(ArtistVote artistVote);

    @Select("select * from artistvote")
    List<ArtistVote> query();
}
